package com.siteseat.crudeq.client;

import java.io.IOException;

public interface Connection {

  boolean isConnected();

  boolean isLogined();

  /**
   * @param userName
   * @param password
   * @param clientId
   * @param language
   * @throws InvalidResponseException
   * @throws ErrorResponseException
   */
  void login( String userName, String password, String clientId, String language ) throws IOException;

  /**
   * @throws IOException
   */
  void disconnect();

}